package com.dhcc.bpm.alarm.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dhcc.bpm.alarm.entity.AlarmStrategy;
import com.dhcc.bpm.alarm.mapper.AlarmStrategyInfoMapper;
import com.dhcc.bpm.alarm.service.IAlarmStrategyInfoService;
import com.dhcc.bpm.alarm.vo.AlarmStrategyVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author xiafayu
 * @since 2022-02-16
 */
@Service
public class AlarmStrategyInfoServiceImpl extends ServiceImpl<AlarmStrategyInfoMapper, AlarmStrategy> implements IAlarmStrategyInfoService {
    @Autowired
    AlarmStrategyInfoMapper alarmStrategyInfoMapper;

    @Override
    public IPage<AlarmStrategyVO> selectAlarmStrategyPage(IPage<AlarmStrategyVO> page, AlarmStrategyVO AlarmStrategy) {
        return page.setRecords(alarmStrategyInfoMapper.selectAlarmStrategyPage(page, AlarmStrategy));
    }
}
